package com.fs.common.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fs.common.annotation.ColumnDesc;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author ACE
 * @desc 系统菜单实体类
 * @creationTime 2019-03-30 15:00
 * @projectName weixinframe
 * @packageName com.fs.pojo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("s_menu")
@EqualsAndHashCode(callSuper=false)
public class Menu extends IdEntity{
	@ColumnDesc(name="菜单名称")
	private String menuName;

	@ColumnDesc(name="菜单地址")
	private String menuUrl;

	@ColumnDesc(name="菜单图标")
	private String menuIcon;

	@ColumnDesc(name="菜单排序")
	private String menuOrder;

	@ColumnDesc(name="菜单父亲")
	private String parentId;

	@ColumnDesc(name="是否根节点")
	private String isLeaf;

	@TableField(exist = false)
	private String iconCls;

	public String getIconCls() {
		iconCls = menuIcon;
		return iconCls;
	}
}
